/*
	A template defines the layout of a single item within a glide.
	The system will need to determine how many items can be displayed.
*/
﻿﻿package com.glidecast.models
{
	import flash.events.EventDispatcher;
	import flash.events.Event;

	public class Template extends EventDispatcher
	{
		public static var UPDATE:String='TemplateUpdated';
		
		public function Template()
		{	
		}
		
		private var _url:String='';
		public function get url():String
		{
			return _url;
		}
		public function set url(s:String):void
		{
			_url=s;
			dispatchEvent(new Event(Template.UPDATE));			
		}
		private var _templateText:String='';
		public function get templateText():String
		{
			return _templateText;
		}
		public function set templateText(s:String):void
		{
			_templateText=s;
			dispatchEvent(new Event(Template.UPDATE));			
		}
		
		private var _maxitems:Number=0;
		public function get maxitems():Number
		{
			return _maxitems;
		}
		public function set maxitems(s:Number):void
		{
			_maxitems=s;
			dispatchEvent(new Event(Template.UPDATE));			
		}
		
		private var _cycledefinition:String='';
		public function get cycledefinition():String
		{
			return _cycledefinition;
		}
		public function set cycledefinition(s:String):void
		{
			_cycledefinition=s;
			dispatchEvent(new Event(Template.UPDATE));			
		}
		
		private var _styledefinition:String='';
		public function get styledefinition():String
		{
			return _styledefinition;
		}
		public function set styledefinition(s:String):void
		{
			_styledefinition=s;
			dispatchEvent(new Event(Template.UPDATE));			
		}
		
		private var _type:String='';
		public function get type():String
		{
			return _type;
		}
		public function set type(s:String):void
		{
			_type=s;
			dispatchEvent(new Event(Template.UPDATE));			
		}
	}
}
